import request from '@/utils/request'

function add(data) {
  return request({
    url: '/teacher/add',
    method: 'post',
    data
  })
}

function deletes(data) {
  return request({
    url: '/teacher/delete/' + data,
    method: 'delete',
  })
}

function update(data) {
  return request({
    url: '/teacher/update',
    method: 'put',
    data
  })
}
function info(data) {
  return request({
    url: '/teacher/info/' + data,
    method: 'get',
  })
}
function list(data) {
  return request({
    url: '/teacher/list',
    method: 'get',
    params: data
  })
}

export default { add, deletes, update, info, list }